<?php
return [
    'id' => 'tutor-form',
    'template' => 'form_default',
    'enableClientValidation' => true,
    'enableAjaxValidation' => false,
    'options' => [],
    'models' => [
        'tutor' => [
            'title' => '添加导师',
            'th_with' => 60,
            'elements' => [
                'name' => [
                    'type' => 'text',
                    'options' => ['class' => 'input-text']
                ],
                'appellation' => [
                    'type' => 'text',
                    'options' => ['class' => 'input-text']
                ],
                'picture'=>[
                    'type'=>'widget',
                    'class'=>\doumiaoduo\ueditor\ImageUploadSingle::className(),
                    'options'=>[
                        'class'=>'input-text',
                    ],
                    'clientOptions'=>[
                        'serverUrl'=>\common\components\helpers\Fun::url(['/uploader/action'])
                    ],
                    'buttonOptions'=>[
                        'class'=>'button'
                    ]
                ],
                'status'=>[
                    'type'=>'radiolist',
                    'items'=>[1=>'启用',0=>'禁用'],
                ],
                'description' => [
                    'type'=>'widget',
                    'class'=>\doumiaoduo\ueditor\Ueditor::className(),
                    'clientOptions'=>[
                        'serverUrl'=>\common\components\helpers\Fun::url(['/uploader/action']),
                        'toolbars'=>[['fullscreen', 'source', '|', 'undo', 'redo', '|','bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript','rowspacingtop', 'rowspacingbottom', 'lineheight', '|','justifyleft', 'justifycenter', 'justifyright', 'justifyjustify','simpleupload','removeformat']],
                        'initialFrameWidth'=>'100%'
                    ],
                ]
            ],
        ]
    ]
];
